package com.ruibang.glass.produce.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.produce.domain.req.DefectSampleReq;
import com.ruibang.glass.produce.domain.resp.DefectSampleRateChart;
import com.ruibang.glass.produce.entity.DefectSample;

import java.util.Map;

/**
 * <p>
 * 溶解缺陷取样 服务类
 * </p>
 *
 * @author songJinKang
 * @since 2024-04-28
 */
public interface DefectSampleService extends IService<DefectSample> {

    void deleteById(String id);

    IPage<DefectSample> pageQuery(DefectSampleReq defectSampleReq);

    void insert(DefectSample defectSample);

    void edit(DefectSample defectSample);

    DefectSampleRateChart rateChart(DefectSampleReq defectSampleReq);

    Map<String, Object> analysisChart(DefectSampleReq defectSampleReq);

    DefectSample getDetail(String id);
}
